Type Generativity in Higher-Order Module Systems pdfauthor

نویسنده

  • Paul Govereau
چکیده

We present a higher-order module system similar to those found in Standard ML and Objective Caml. Our system allows both generative and non-generative types. Unlike other systems, the generativity of a type is reflected directly in the signature of the module in which it is declared, allowing a more direct analysis of type abstraction and generativity. Our module system can express both generative and applicative functors, and allows mixing of generative and non-generative types within a single module. This gives the programmer greater control over type generativity, and brings a new perspective to the relationship between the two styles of abstraction.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Type Systems for Modules Notes from Meeting #3

The paper presents second order type theory for the ML module system with generative functors. The key idea is to use existential quantification over types to account for type generativity to solve the avoidance problem, i.e. avoid leaking local abstract type variables. The solution is to make sure every type containing abstract type variables is prefixed with an existential that binds those ab...

متن کامل

A Syntactic Theory of Type Generativity and Sharing

This paper presents a purely syntactic account of type generativity and sharing — two key mechanisms in the SML module system — and shows its equivalence with the traditional stamp-based description of these mechanisms. This syntactic description recasts the SML module system in a more abstract, type-theoretic framework.

متن کامل

A Type System for Higher-Order Modules (Expanded Version)

We present a type theory for higher-order modules that accounts for many central issues in module system design, including translucency, applicativity, generativity, and modules as first-class values. Our type system harmonizes design elements from previous work, resulting in a simple, economical account of modular programming. The main unifying principle is the treatment of abstraction mechani...

متن کامل

A Syntactic Approach to Structure GenerativityFranz -

Advanced module systems like Standard ML's 13, 17] support structure generativity. Structure generativity denotes the mechanism that parameterized modules (functors) generate a "new" module instance (structure) for every application to a suitable argument. This operational behaviour is essentially a side eeect. Since interfaces in general depend on module instances, module instances are computa...

متن کامل

A Syntactic Approach to Structure GenerativityFranz - Josef Grosch Abteilung SoftwaretechnologieTechnische

Advanced module systems like Standard ML's 13, 17] support structure generativity. Structure generativity denotes the mechanism that parameterized modules (functors) generate a "new" module instance (structure) for every application to a suitable argument. This operational behaviour is essentially a side eeect. Since interfaces in general depend on module instances, module instances are computa...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2006